
<div id='panel'>
<div class="fulldiv" style="width:700px; margin:0px 0px 0px 5px;">
 <strong class="orangehead">My Swapen</strong>
 <p style="color:gray;">All your sold, selling, bought, buying amd other things need attention will be shown here.</p>




<table width="100%"  border="0" cellspacing="0" class="container" style=" border-width: 0; border:none;">
  <tr>
    <td>
	<div class="fulldiv">
	   <?php
	   $mypg_whole = $mypg_msg = $mypg_help = '';
	   if(isset($_GET['mySwapen']))
	   {
	    $mypg_whole = 'class="current"';
	   }
	   else if(isset($_GET['inbox'])) {
	    $mypg_msg = 'class="current"';
	   }
	   else {
	    $mypg_help = 'class="current"';
	   }
	   ?> 
	   <div class="mypg_whole"><a href="index.php?mySwapen" <?php echo $mypg_whole; ?>></a></div>
	   <div class="mypg_msg"><a href="index.php?inbox" <?php echo $mypg_msg; ?>></a></div>
	   <div class="mypg_help"><a href="index.php?faq" <?php echo $mypg_help; ?>></a></div>
	   <div class="bluesml_out" id='m_all' style="margin:5px 0px;">Minimize All<br />
		   <div class="bluearrowsml" onclick="minimize_all('wholesaler')">&nbsp;</div>
	   </div>
	</div>
	</td>
  </tr>
  <tr>
    <td>
		<div class="fulldiv">
			<div class="mypg_searchtxt">
				Search Merchant Wanted Items
			</div>
			
			 <div class="mypg_inputout">
				 <input type="text" style="width: 290px;" class="inputbg" value="" id="key1" name="key1" />
			 </div>
			 <div class="mypg_search_out">
			   <input type="button" id="searchBtn" class="refer_btn" onclick="srch_mer();" name="ser_mer" value="Search" style="margin:0px;">  
			 </div>
			
			
			<p style="text-align:center; width:100%; float:left; color:gray;">
			*Only wholesalers have access to this search
			</p>
			
				<div class="fulldiv">
					<div class="star" style="float: right;">&nbsp;</div>
					<a href="javascript:void(0);" class="bluelink" style="float: right;"onclick="show_more_info_cvs()">more info</a>
				</div>
				
				<script>
				function show_more_info_cvs()
				{
				  var ntop = ( $(window).height() - $('#more_info_cvs').height() ) / (2+$(window).scrollTop());
				  var nleft = ( $(window).width() - $('#more_info_cvs').width() ) / (2+$(window).scrollLeft());
				  $('#more_info_cvs').css({'left': nleft, 'top':ntop});
				  $('#more_info_cvs').fadeIn('slow');
				}
				</script>
                <div style=" display: none; width: 400px; font-weight:bold; padding:10px; background-color:#cccccc; opacity:0.9;" class="user_popup" id="more_info_cvs">
			  <span style="float:left; width:100%; text-align:right; margin-bottom:5px;"><label style="cursor:pointer;" onclick="$('#more_info_cvs').fadeOut('slow');">x</label></span>
			  <span style="float:left; width:100%; margin-bottom:10px;" id="desc_info">The mass upload was created for your convenience in order to allow thousands of products within your inventory to be uploaded within one spreadsheet in just minutes. Tip: you may use the same spreadsheet over and over by adding on new products.</span>
			</div>
			<div class="fulldiv" style="width:700px;">
			  <div class="whole_inven">
			    Add your whole inventory with 1 upload using our Mass Upload System.
			    <br />Please download the <a href="<?php echo $base_url;?>download.php?f=Products.csv">.csv file here</a>
			  </div>
			</div>
			
			
		</div>
	</td>
 </tr>

</table>

<script>
   function srch_mer()
   {
    //var frm1=document.getElementById('form_his');
    var key = $('#key1').val();
    //alert(key+'key');
    var sg = 'merchant';
    var st = '';
    var ct = '';
    var pf = 'Min';
    var pt = 'Max';
    window.location = "index.php?srchBuyer&sg="+sg+"&key="+key+"&st="+st+"&cty="+ct+"&pf="+pf+"&pt="+pt;
    //frm1.action="index.php?srchBuyer&sg="+sg+"&key="+key+"&st="+st+"&cty="+ct+"&pf="+pf+"&pt="+pt;
    //frm1.submit();
   }
   </script>
</div>
</div>
